@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.brand {
  color: $blue;
}

.refresh-btn {
  margin-right: 20px!important;
}

.add-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  color: $blue;
  cursor: pointer;
}

.icon-fs {
  font-size: 20px;
}

.el-form {
  max-height: 450px;
  overflow-y: auto;
  padding-right: 30px;
}

.el-menu-item {
  &.is-active {
    color: $blue;
    background-color: $lightBlue;
  }
}

.el-dialog__wrapper .el-dialog__body {
  padding-right: 0;
}

.el-loading-mask {
  background-color: rgba(255, 255, 255, .5)!important;
}

.fs-20 {
  font-size: 20px;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  -ms-text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

.ellipsis-line-2 {
  @include ellipsisLines(2);
}

.ellipsis-line-3 {
  @include ellipsisLines(3);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  border-left: none;
}

::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: $gray;

  &:hover {
      background: $dGray;
  }
}

::-webkit-scrollbar-button {
  height: 0;
  width: 0;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}